package com.kexin.common.utils;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;

/**
 * @author chen
 * @date 2021/1/26
 */
public class OrderUtil {
    public  static  SimpleDateFormat sdf=new SimpleDateFormat("yyyyMMddHHmmssSSS");
    public  static Random random=new Random();
    public  static String orderNo(){
        return "T"+sdf.format(new Date())+(random.nextInt(899)+100);
    }
    public  static String tpOrderNo(){
        return "TP"+sdf.format(new Date())+(random.nextInt(899)+100);
    }
}
